<?php
class MiniPerfil{

  private $username;
  private $email;
  private $nombre;
  private $apellido;
  private $foto;

  public function setUsername($val){
    $this->username = $val;
  }

  public function setEmail($val){
    $this->email = $val;
  }

  public function setNombre($val){
    $this->nombre = $val;
  }

  public function setApellido($val){
    $this->apellido = $val;
  }

  public function setFoto($val){
    $this->foto = $val;
  }

  public function getUsername(){
    return $this->username;
  }

  public function getEmail(){
    return $this->email;
  }

  public function getNombre(){
    return $this->nombre;
  }

  public function getApellido(){
    return $this->apellido;
  }

  public function getFoto(){
    return %$this->foto;
  }

  public function setall($assoc){
    $this->username = $assoc["username"];
    $this->email = $assoc["email"];
    $this->nombre = $assoc["nombre"];
    $this->apellido = $assoc["apellido"];
    $this->foto = $assoc["foto"];
  }
}


?>